<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:41:"template/platform/Wchat/templateNews.html";i:1567411914;s:31:"template/platform/new_base.html";i:1569222316;s:44:"template/platform/controlCommonVariable.html";i:1567411914;s:31:"template/platform/urlModel.html";i:1567411914;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><?php echo $second_menu['module_name']; ?> - 微商来 - 让更多的人帮你卖货！</title>
    <link rel="stylesheet" href="PLATFORM_NEW_LIB/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="PLATFORM_STATIC/css/common.css?t=1.2">
    <link rel="stylesheet" href="PLATFORM_NEW_CSS/platform.css?t=1.1">
    <link rel="shortcut icon" href="PLATFORM_IMG/logo.png" type="image/x-icon" />
    <script>
        var PLATFORMJS = "PLATFORM_NEW_JS";
    </script>
    <script type="text/javascript" src="PLATFORM_NEW_LIB/require.js"></script>
    <script type="text/javascript" src="PLATFORM_NEW_JS/time_common.js"></script>
    <script type="text/javascript" src="PLATFORM_NEW_JS/common.js"></script>
    <script type="text/javascript" src="PLATFORM_NEW_JS/jquery.min.js"></script>
    <script type="text/javascript" src="PLATFORM_NEW_JS/jquery-migrate-1.2.1.min.js"></script>
    <script type="text/javascript" src="PLATFORM_NEW_JS/config.js"></script>
    <script>
    var PLATFORM_NAME = "<?php echo $title_name; ?>";
    var PLATFORMIMG = "PLATFORM_IMG";//后台图片请求路径
    var PLATFORMMAIN = "PLATFORM_MAIN";//后台请求路径
    var SHOPMAIN = "SHOP_MAIN";//PC端请求路径
    var APPMAIN = "APP_MAIN";//手机端请求路径
    var UPLOAD = "__UPLOAD__";//上传文件根目录
    var PAGESIZE = "<?php echo $pagesize; ?>";//分页显示页数
    var ROOT = "__ROOT__";//根目录
    var ADDONS = "__ADDONS__";
    var STATIC = "__STATIC__";
    var MAIN = "PLATFORM_MAIN";//装修请求路径
    var PASSMAIN = "PLATFORM_MAIN";
    var ADDONSMAIN = "ADDONS_MAIN";

</script>
    <input type="hidden" id="vslai_rewrite_model" value="<?php echo rewrite_model(); ?>">
<input type="hidden" id="vslai_url_model" value="<?php echo url_model(); ?>">
<input type="hidden" id="vslai_admin_model" value="<?php echo admin_model(); ?>">
<input type="hidden" id="vslai_platform_model" value="<?php echo platform_model(); ?>">
<input type="hidden" id="url_realm_ip" value="<?php echo $web_info['realm_ip']; ?>">
<script>
function __URL(url){
	url = url.replace('SHOP_MAIN', '');
	url = url.replace('APP_MAIN', 'wap');
	url = url.replace('ADMIN_MAIN', $("#vslai_admin_model"));
	url = url.replace('PLATFORM_MAIN', $("#vslai_platform_model"));
	if(url == ''|| url == null){
		return 'SHOP_MAIN'+'?website_id=<?php echo $website_id; ?>';
	}else{
		var str=url.substring(0, 1);
		if(str=='/' || str=="\\"){
			url=url.substring(1, url.length);
		}
		// if($("#vslai_rewrite_model").val()==1 || $("#vslai_rewrite_model").val()==true){
		// 	return 'SHOP_MAIN/'+url;
		// }
		var action_array = url.split('?');
		//检测是否是pathinfo模式
		var url_model = $("#vslai_url_model").val();
		if(url_model==1 || url_model==true){
			var base_url = 'SHOP_MAIN/'+action_array[0];
			var tag = '?';
		}else{
			var base_url = 'SHOP_MAIN?s=/'+ action_array[0];
			var tag = '&';
		}
                var url = base_url;
                for(var i=1;i<action_array.length;i++){
                    if(action_array[i] != '' && action_array[i] != null){
                        url+=tag + action_array[i];
                    }else{
                        url+=tag;
                    }
                }

		return url;

	}
}
function __URLS(url){
    if( $("#vslai_rewrite_model").val()){
        url = url.replace("/index.php","");
    }
    var index = url.lastIndexOf("//");
    str = url.substring(index+2,url.length);
    var index1 =  str.indexOf("/");
    str0 = url.substring(0,index+2);
    str1 = str.substring(0,index1);
    str2 = str.substring(index1,url.length);
    var realm_ip = $("#url_realm_ip").val();
    if(realm_ip){
        urls = str0+realm_ip+str2;
    }
    var str=urls.substring(0, 1);
    if(str=='/' || str=="\\"){
        urls=urls.substring(1, urls.length);
    }
    var action_array = urls.split('?');
        //检测是否是pathinfo模式
    var url_model = $("#vslai_url_model").val();
    if(url_model==1 || url_model==true){
        var base_url = action_array[0];
        var tag = '?';
    }else{
        var base_url =  action_array[0];
        var tag = '&';
    }
    var urls = base_url;

    return urls;
}
//处理图片路径
function __IMG(img_path){
	var path = "";
	if(img_path != undefined && img_path != ""){
		if(img_path.indexOf("http://") == -1 && img_path.indexOf("https://") == -1){
                    var url = document.domain;
                    var ishttps = 'https:' == document.location.protocol ? true: false;
                    if(ishttps){
                        url = 'https://' + url;
                   }else{
                        url = 'http://' + url;
                   }
                    
		    if(img_path.substr(0,1)=='/'){
                path = url + UPLOAD+img_path;
            }else{
                path = url + UPLOAD+"\/"+img_path;
            }
		}else{
			path = img_path;
		}
	}
	return path;
}
</script>
    
<style>
</style>

    <!--[if IE]>
	<script src='https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv-printshiv.min.js'></script><script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	< ![endif]-->
</head>
<body>
<div class="v-layout <?php if(!$second_menu_list): ?> nosubnav <?php endif; ?>">
    <div class="v-sidebar">
        <!--导航-->
        <div class="v-nav">
            <!--<a class="v-logo" href="/" title=""><img src="PLATFORM_STATIC/images/logo.png"></a>-->
            <ul class="v-nav-list">
                <?php if($nav_list): if(is_array($nav_list) || $nav_list instanceof \think\Collection || $nav_list instanceof \think\Paginator): $i = 0; $__LIST__ = $nav_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['data']['icon_class']=='icon-application-color' && !in_array($vo['data']['module_id'],$addons_sign_module)): ?>
                <li><a href="<?php echo __URL('PLATFORM_MAIN/'.$vo['data']['url']); ?>" class='item  <?php if($vo['data']['module_id'] == $headid): ?>active<?php endif; ?>' title=""><span class="icon-application-color"><span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span></span>&nbsp;<?php echo $vo['data']['module_name']; ?></a></li>
                <?php else: ?>
                <li ><a href="<?php echo __URL('PLATFORM_MAIN/'.$vo['data']['url']); ?>" class='item <?php if($vo['data']['is_menu'] == 0): ?>hide<?php endif; if($vo['data']['module_id'] == $headid): ?> active <?php endif; ?>' title=""><i class="icon <?php if($vo['data']['icon_class']): ?><?php echo $vo['data']['icon_class']; else: ?> icon-home <?php endif; ?>"></i>&nbsp;<?php echo $vo['data']['module_name']; ?></a></li>
                 <?php endif; endforeach; endif; else: echo "" ;endif; endif; ?>
            </ul>
        </div>
        
        <?php if($second_menu_list): ?>
        <div class="v-subnav">

            <?php if(is_array($nav_list) || $nav_list instanceof \think\Collection || $nav_list instanceof \think\Paginator): $i = 0; $__LIST__ = $nav_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if(!in_array($vo['data']['module_id'],$addons_sign_module)): if(!(empty($vo['sub_menu']) || (($vo['sub_menu'] instanceof \think\Collection || $vo['sub_menu'] instanceof \think\Paginator ) && $vo['sub_menu']->isEmpty()))): ?>
            <ul class="v-subnav-list <?php if($vo['data']['module_id'] == $headid): ?>block<?php else: ?>hide<?php endif; ?>" id="menu_<?php echo $vo['data']['module_id']; ?>" >
            <?php if(is_array($vo['sub_menu']) || $vo['sub_menu'] instanceof \think\Collection || $vo['sub_menu'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['sub_menu'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v1): $mod = ($i % 2 );++$i;if(!in_array($v1['module_id'],$addons_sign_module)): ?>
            <li>
                <a href="<?php echo __URL('PLATFORM_MAIN/'.$v1['url']); ?>"  <?php if(strtoupper($v1['method']) == strtoupper($action) || $v1['module_id'] == $pid): ?> class="item active"<?php else: ?> class="item"<?php endif; ?>> <?php echo $v1['module_name']; ?></a>
            </li>
            <?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <?php endif; ?>
        
    </div>
    
<?php if($no_menu == '1'): else: ?>
<div class="v-header">
        <div class="v-header-box">
            <?php if($second_menu['module_name']=='首页'): ?>
            <div class="v-header-title">
                <img src="/public/platform/images/logo2.png" class="v-header-img">
                <?php if($web_info['mall_name']): ?>
                <span style="font-weight: bold;font-size: 18px;padding: 0 3px"><?php echo $web_info['mall_name']; ?></span>
                <?php else: ?><span style="font-weight: bold;font-size: 18px;padding: 0 3px"><?php echo $web_info['title']; ?></span><?php endif; ?> 
                <span class="btn-version btn-primary versionPr" id="versionPr">
                    <?php echo $web_info['version']; ?>
                </span>
            </div>
            <?php else: ?>
            <div class="v-header-title">
                <img src="/public/platform/images/logo2.png" class="v-header-img">
                <?php if($web_info['mall_name']): ?>
                <span style="font-weight: bold;font-size: 18px;padding: 0 3px"><?php echo $web_info['mall_name']; ?></span>
                <?php else: ?><span style="font-weight: bold;font-size: 18px;padding: 0 3px"><?php echo $web_info['title']; ?></span><?php endif; ?> 
                <span class="btn-version btn-primary versionPr" id="versionPr">
                    <?php echo $web_info['version']; ?>
                 </span> 
                </div>
            <?php endif; ?>
            <div class="v-header-account">

                <div class="user-menu fs-12">



                    <div class="inline-block">
                        <a href="<?php echo __URL('PLATFORM_MAIN/index/preview'); ?>" class="previewIndex" target="_blank">预览</a>
                    </div>

                    <div class="inline-block newsTips shortcutBar">
                        <a href="javascript:void(0);" id="news-tips" class="dker clear-cache" style="position: relative">
                            <span><i class="icon icon-message3"></i></span> 
                            <span class="badge pa tip0"></span>
                        </a>
                        
                        <div class="dropdown-menu" aria-labelledby="news-tips">
                            <ul class="newsTips_ul">
                                <li class="no_count hide">暂无待办信息</li>
                                <li class="dai_count hide"><a href="<?php echo __URL('PLATFORM_MAIN/order/orderlist'); ?>?order_status=1" class="flex flex-pack-justify"><div>待发货订单</div><div class="text-red tip2"></div></a></li>
                                <li class="after_count hide"><a href="<?php echo __URL('PLATFORM_MAIN/order/afterorderlist'); ?>" class="flex flex-pack-justify"><div>售后订单</div><div class="text-red tip3"></div></a></li>
                                <li class="mail_count hide"><a href="<?php echo __URL('PLATFORM_MAIN/Mail/mailList'); ?>" class="flex flex-pack-justify"><div>站内信</div><div class="text-red tip4"></div></a></li>
                                <li class="cms_count hide"><a href="<?php echo __URL('PLATFORM_MAIN/Mail/cmsList'); ?>" class="flex flex-pack-justify"><div>公告</div><div class="text-red tip5"></div></a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="layout-user inline-block">
                        <div class="ivu-dropdown">
                            <div class="ivu-dropdown-rel">
                                <a href="javascript:void(0)" class="text-primary"><img src="/public/platform/images/index/22.png" class="avatar">
                                    <?php if($username): ?><?php echo $username; else: ?><?php echo $web_info['user_tel']; endif; ?>
                                    <span class="caret"></span>
                                </a>
                            </div>
                            <div class="dropdown-menu qqqq">
                                <div class="ivu-dropdown-menu user-dropdown">
                                    <div class="infos">
                                        <div class="row">
                                            <div class="col-md-3">
                                               <a class="avatar"><img src="/public/platform/images/index/22.png"></a>
                                            </div>
                                            <div class="col-md-9">
                                                <p class="names"><?php if($username): ?><?php echo $username; else: ?><?php echo $web_info['user_tel']; endif; ?></p>
                                                <p class="names updateUser"><span id="updateUser"><?php if($web_info['title']): ?><?php echo $web_info['title']; else: ?>未设置公司名称<?php endif; ?></span> <a href="javascript:void(0);" class="text-primary" style="margin-left: 6px">修改</a></p>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="operations flex">
                                        <a href="<?php echo __URL('PLATFORM_MAIN/Addonslist/incrementOrderList'); ?>" target="_blank"><i class="icon icon-order1 mr-10"></i>订购列表</a>
                                        <?php if($auth_status): ?>
                                        <a href="<?php echo __URL('PLATFORM_MAIN/Auth/userlist'); ?>"><i class="icon icon-account3 mr-10"></i>子账号列表</a>
                                        <?php endif; ?>
                                        <a href="http://bbs.vslai.com.cn/plugin.php?id=workorder" target="_blank"><i class="icon icon-list mr-10"></i>工单管理</a>
                                        <a href="javascript:void(0);" class="updatePass"><i class="icon icon-password3 mr-10"></i>修改密码</a>
                                    </div>
                                    <div class="operations flex">
                                        <a href="javascript:void(0);" class="delcache"><i class="icon icon-clear mr-10"></i>清除缓存</a>
                                        <a href="<?php echo __URL('PLATFORM_MAIN/Login/logout'); ?>"><i class="icon icon-logout-l mr-10"></i>退出登录</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>
<?php endif; ?>

    <div class="v-main">
        <div class="v-container">
            <?php if($second_menu['desc'] != ''): ?>
            <div class="alert alert-tips alert-dismissible" role="alert">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <?php echo $second_menu['desc']; if($second_menu['jump'] != ''): ?>
                <a href="<?php echo $second_menu['jump']; ?>" class="alert-link" target="_blank">&nbsp;查看详情</a>
                <?php endif; ?>
            </div>
            <?php endif; ?>
            
<!-- page -->
<ul class="nav nav-tabs v-nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#paySuccess" aria-controls="paySuccess" data-type="paySuccess" role="tab" data-toggle="tab" class="flex-auto-center">付款成功</a></li>
    <li role="presentation"><a href="#orderClose" aria-controls="orderClose" data-type="orderClose" role="tab" data-toggle="tab" class="flex-auto-center">订单关闭</a></li>
    <li role="presentation"><a href="#balanceChange" aria-controls="balanceChange" data-type="balanceChange" role="tab" data-toggle="tab" class="flex-auto-center">余额变动</a></li>
    <li role="presentation"><a href="#afterSale" aria-controls="afterSale" data-type="afterSale" role="tab" data-toggle="tab" class="flex-auto-center">售后情况</a></li>
    <li role="presentation"><a href="#distributionNotice" aria-controls="distributionNotice" data-type="distributionNotice" role="tab" data-toggle="tab" class="flex-auto-center">分销商通知</a></li>
</ul>
<div class="tab-content pt-15">
    <div role="tabpanel" class="tab-pane fade in active" id="paySuccess">
        <div class="tNews-container flex flex-pack-center">
            <div class="tNews-view">
                <div class="tNews-title" >微商来商城</div>
                <div class="view-main" >
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">付款成功通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">你的订单已完成付款</p>
                            <p class="line-1-ellipsis pb-4">订单金额：145.25元</p>
                            <p class="line-1-ellipsis pb-4">商品详情：七匹狼正品 牛皮男士钱包 真皮钱…</p>
                            <p class="line-1-ellipsis pb-4">收货信息：黄宏东，广东省 深圳市 宝安区</p>
                            <p class="line-1-ellipsis pb-4">订单编号：546787944-55446467-544749</p>
                            <p class="text-primary line-1-ellipsis">商家会尽快为您安排发货，感谢你对我们的支持</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                </div>
            </div>
            <div class="custom-editor1 fs-12">
                <div class="editor1-main" style="margin-top: 0px;">
                    <div class="editor1-arrow"></div>
                    <div class="editor1-inner">
                        <div class="form-editor1-title">使用场景：支付成功</div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">模版标题</div>
                            <div class="col-sm-10 mt-6">付款成功通知</div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">模版编号</div>
                            <div class="col-sm-10 mt-6">TM00398</div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label"><span class="text-bright">*</span>模版ID</div>
                            <div class="col-sm-10">
                                <input class="form-control input-sm diy-bind" id="template_id1" value="<?php if($list['type1']['template_id']): ?><?php echo $list['type1']['template_id']; endif; ?>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">通知人</div>
                            <div class="col-sm-10" style="margin-top: 3px">
                                <label class="checkbox-inline"><input type="checkbox" name="inform1" value="1" <?php if($list['type1']['inform']): ?>checked<?php endif; ?>> <span style="padding-top: 2px;display: inline-block;">会员</span> </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">状态</div>
                            <div class="col-sm-10">
                                <div class="switch-inline">
                                    <input type="checkbox" id="switch1" <?php if($list['type1']['is_use']): ?>checked<?php endif; ?>>
                                    <label for="switch1" class=""></label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label"></label>
                            <div class="col-md-8">
                                <a class="btn btn-primary add1" href="javascript:;">保存</a>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="editor1-main-tips mt-10">
                    <p class="mb-10">1、登录【微信公众号平台】=>【功能】=>【消息模板】;</p>
                    <p class="mb-10">2、如找不到该功能，则在【微信公众号平台】=>【功能】=>添加功能插件=>消息模板 中添加；</p>
                    <p class="mb-10">3、选择行业为：“IT科技-互联网|电子商务”</p>
                    <p class="mb-10">4、在【模板库】通过“模版标题”进行搜索，在搜索结果处通过“模版编号”找到相应的模版然后点击添加即可。</p>
                    <p class="mb-10">5、在【我的模板】找到对应的“模版ID”，填入商城的“模版ID”处，勾选通知人然后开启保存即可。</p>
                </div>
            </div>
        </div>
    </div>
    <div role="tabpanel" class="tab-pane fade" id="orderClose">
        <div class="tNews-container flex flex-pack-center">
            <div class="tNews-view">
                <div class="tNews-title" >微商来商城</div>
                <div class="view-main">
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">订单取消通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">您的订单已取消</p>
                            <p class="line-1-ellipsis pb-4">订单金额：44.20元</p>
                            <p class="line-1-ellipsis pb-4">商品详情：七匹狼真皮鞋包七匹狼真皮鞋包</p>
                            <p class="line-1-ellipsis pb-4">收货信息：深圳市宝安区海秀路23号</p>
                            <p class="line-1-ellipsis pb-4">订单编号：8976541236598771</p>
                            <p class="text-primary">点击“详情”查看订单相关信息，如有疑问可联系客服。</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                </div>
            </div>
            <div class="custom-editor1 fs-12">
                <div class="editor1-main"  style="margin-top: 0px;">
                    <div class="editor1-arrow"></div>
                    <div class="editor1-inner">
                        <div class="form-editor1-title">使用场景：用户取消订单、订单超时</div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">模版标题</div>
                            <div class="col-sm-10 mt-6">订单取消通知</div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">模版编号</div>
                            <div class="col-sm-10 mt-6">TM00850</div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label"><span class="text-bright">*</span>模版ID</div>
                            <div class="col-sm-10">
                                <input class="form-control input-sm diy-bind" id="template_id2" value="<?php if($list['type2']['template_id']): ?><?php echo $list['type2']['template_id']; endif; ?>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">通知人</div>
                            <div class="col-sm-10" style="margin-top: 3px">
                                <label class="checkbox-inline"><input type="checkbox" name="inform2" value="1" <?php if($list['type2']['inform']): ?>checked<?php endif; ?>> <span style="padding-top: 2px;display: inline-block;">会员</span> </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">状态</div>
                            <div class="col-sm-10">
                                <div class="switch-inline">
                                    <input type="checkbox" id="switch2" <?php if($list['type2']['is_use']): ?>checked<?php endif; ?>>
                                    <label for="switch2" class=""></label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label"></label>
                            <div class="col-md-8">
                                <a class="btn btn-primary add2" href="javascript:;">保存</a>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="editor1-main-tips mt-10">
                    <p class="mb-10">1、登录【微信公众号平台】=>【功能】=>【消息模板】;</p>
                    <p class="mb-10">2、如找不到该功能，则在【微信公众号平台】=>【功能】=>添加功能插件=>消息模板 中添加；</p>
                    <p class="mb-10">3、选择行业为：“IT科技-互联网|电子商务”</p>
                    <p class="mb-10">4、在【模板库】通过“模版标题”进行搜索，在搜索结果处通过“模版编号”找到相应的模版然后点击添加即可。</p>
                    <p class="mb-10">5、在【我的模板】找到对应的“模版ID”，填入商城的“模版ID”处，勾选通知人然后开启保存即可。</p>
                </div>
            </div>
        </div>
    </div>
    <div role="tabpanel" class="tab-pane fade" id="balanceChange">
        <div class="tNews-container flex flex-pack-center">
            <div class="tNews-view">
                <div class="tNews-title">微商来商城</div>
                <div class="view-main">
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">账户余额变动通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">您的账户余额发生变动，信息如下</p>
                            <p class="line-1-ellipsis pb-4">账户类型：余额</p>
                            <p class="line-1-ellipsis pb-4">操作类型：<span class="text-success">提现成功</span></p>
                            <p class="line-1-ellipsis pb-4">操作内容：流水号2015163443230008</p>
                            <p class="line-1-ellipsis pb-4">变动额度：-205.00元</p>
                            <p class="line-1-ellipsis pb-4">账户余额：568.00元</p>
                            <p class="text-primary">如对上述余额变动有异议，请联系客服人员协助处理。</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">账户余额变动通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">您的账户余额发生变动，信息如下</p>
                            <p class="line-1-ellipsis pb-4">账户类型：余额</p>
                            <p class="line-1-ellipsis pb-4">操作类型：<span class="text-danger">提现失败</span></p>
                            <p class="line-1-ellipsis pb-4">操作内容：流水号2015163443230008</p>
                            <p class="line-1-ellipsis pb-4">变动额度：0元</p>
                            <p class="line-1-ellipsis pb-4">账户余额：568.00元</p>
                            <p class="text-primary">失败原因：XXXXXXXXXXXXXXXXXXXX，如有疑问请联系客服。</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">账户余额变动通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">您的账户余额发生变动，信息如下</p>
                            <p class="line-1-ellipsis pb-4">账户类型：余额</p>
                            <p class="line-1-ellipsis pb-4">操作类型：<span class="text-success">充值成功</span></p>
                            <p class="line-1-ellipsis pb-4">操作内容：流水号2015163443230008</p>
                            <p class="line-1-ellipsis pb-4">变动额度：+205.00元</p>
                            <p class="line-1-ellipsis pb-4">账户余额：568.00元</p>
                            <p class="text-primary">如对上述余额变动有异议，请联系客服人员协助处理。</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">账户余额变动通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">您的账户余额发生变动，信息如下</p>
                            <p class="line-1-ellipsis pb-4">账户类型：余额</p>
                            <p class="line-1-ellipsis pb-4">操作类型：<span class="text-success">奖品领取成功</span></p>
                            <p class="line-1-ellipsis pb-4">操作内容：流水号Ac190529052448716</p>
                            <p class="line-1-ellipsis pb-4">变动额度：+205.00元</p>
                            <p class="line-1-ellipsis pb-4">账户余额：568.00元</p>
                            <p class="text-primary">如对上述余额变动有异议，请联系客服人员协助处理。</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">账户余额变动通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">您的账户余额发生变动，信息如下</p>
                            <p class="line-1-ellipsis pb-4">账户类型：余额</p>
                            <p class="line-1-ellipsis pb-4">操作类型：<span class="text-success">签到余额发放成功</span></p>
                            <p class="line-1-ellipsis pb-4">操作内容：流水号Si190529052448716</p>
                            <p class="line-1-ellipsis pb-4">变动额度：+205.00元</p>
                            <p class="line-1-ellipsis pb-4">账户余额：568.00元</p>
                            <p class="text-primary">如对上述余额变动有异议，请联系客服人员协助处理。</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                </div>
            </div>
            <div class="custom-editor1 fs-12">
                <div class="editor1-main"  style="margin-top: 0px;">
                    <div class="editor1-arrow"></div>
                    <div class="editor1-inner">
                        <div class="form-editor1-title">使用场景：充值、提现等</div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">模版标题</div>
                            <div class="col-sm-10 mt-6">账户余额变动通知</div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">模版编号</div>
                            <div class="col-sm-10 mt-6">OPENTM205454780</div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label"><span class="text-bright">*</span>模版ID</div>
                            <div class="col-sm-10">
                                <input class="form-control input-sm diy-bind" id="template_id3" value="<?php if($list['type3']['template_id']): ?><?php echo $list['type3']['template_id']; endif; ?>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">通知人</div>
                            <div class="col-sm-10" style="margin-top: 3px">
                                <label class="checkbox-inline"><input type="checkbox" name="inform3" value="1" <?php if($list['type3']['inform']): ?>checked<?php endif; ?>> <span style="padding-top: 2px;display: inline-block;">会员</span> </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">状态</div>
                            <div class="col-sm-10">
                                <div class="switch-inline">
                                    <input type="checkbox" id="switch3" <?php if($list['type3']['is_use']): ?>checked<?php endif; ?>>
                                    <label for="switch3" class=""></label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label"></label>
                            <div class="col-md-8">
                                <a class="btn btn-primary add3" href="javascript:;">保存</a>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="editor1-main-tips mt-10">
                    <p class="mb-10">1、登录【微信公众号平台】=>【功能】=>【消息模板】;</p>
                    <p class="mb-10">2、如找不到该功能，则在【微信公众号平台】=>【功能】=>添加功能插件=>消息模板 中添加；</p>
                    <p class="mb-10">3、选择行业为：“IT科技-互联网|电子商务”</p>
                    <p class="mb-10">4、在【模板库】通过“模版标题”进行搜索，在搜索结果处通过“模版编号”找到相应的模版然后点击添加即可。</p>
                    <p class="mb-10">5、在【我的模板】找到对应的“模版ID”，填入商城的“模版ID”处，勾选通知人然后开启保存即可。</p>
                </div>
            </div>
        </div>
    </div>
    <div role="tabpanel" class="tab-pane fade" id="afterSale">
        <div class="tNews-container flex flex-pack-center">
            <div class="tNews-view">
                <div class="tNews-title" id="page">微商来商城</div>
                <div class="view-main" id="view">
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">售后服务进度通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">您申请的售后服务有新的进度！</p>
                            <p class="line-1-ellipsis pb-4">售后类型：仅退款</p>
                            <p class="line-1-ellipsis pb-4">当前进度：<span class="text-success">退款成功</span></p>
                            <p class="line-1-ellipsis pb-4">商品详情：富川脐橙</p>
                            <p class="line-1-ellipsis pb-4">订单编号：32160910125478</p>
                            <p class="text-primary">您的退款已原路返回，退款金额为999.00元，退款可能有延时，请留意到账情况。</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">售后服务进度通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">您申请的售后服务有新的进度！</p>
                            <p class="line-1-ellipsis pb-4">售后类型：退款</p>
                            <p class="line-1-ellipsis pb-4">当前进度：<span class="text-danger">拒绝退款</span></p>
                            <p class="line-1-ellipsis pb-4">商品详情：富川脐橙</p>
                            <p class="line-1-ellipsis pb-4">订单编号：32160910125478</p>
                            <p class="text-primary">失败原因：XXXXXXXXXXXXXXXXXXXX，如有疑问请联系客服。</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">售后服务进度通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">您申请的售后服务有新的进度！</p>
                            <p class="line-1-ellipsis pb-4">售后类型：退货退款</p>
                            <p class="line-1-ellipsis pb-4">当前进度：<span class="text-success">同意退货</span></p>
                            <p class="line-1-ellipsis pb-4">商品详情：富川脐橙</p>
                            <p class="line-1-ellipsis pb-4">订单编号：32160910125478</p>
                            <p class="text-primary">点击“详情”查看商家收货信息，如有疑问请联系客服。</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">售后服务进度通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="text-primary line-1-ellipsis pb-4">您申请的售后服务有新的进度！</p>
                            <p class="line-1-ellipsis pb-4">售后类型：退款</p>
                            <p class="line-1-ellipsis pb-4">当前进度：<span class="text-danger">拒绝退货</span></p>
                            <p class="line-1-ellipsis pb-4">商品详情：富川脐橙</p>
                            <p class="line-1-ellipsis pb-4">订单编号：32160910125478</p>
                            <p class="text-primary">失败原因：XXXXXXXXXXXXXXXXXXXX，如有疑问请联系客服。</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                </div>
            </div>
            <div class="custom-editor1 fs-12">
                <div class="editor1-main" id="editor" style="margin-top: 0px;">
                    <div class="editor1-arrow"></div>
                    <div class="editor1-inner">
                        <div class="form-editor1-title">使用场景：退货、退款</div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">模版标题</div>
                            <div class="col-sm-10 mt-6">售后服务进度通知</div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">模版编号</div>
                            <div class="col-sm-10 mt-6">OPENTM408263742</div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label"><span class="text-bright">*</span>模版ID</div>
                            <div class="col-sm-10">
                                <input class="form-control input-sm diy-bind" id="template_id4" value="<?php if($list['type4']['template_id']): ?><?php echo $list['type4']['template_id']; endif; ?>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">通知人</div>
                            <div class="col-sm-10" style="margin-top: 3px">
                                <label class="checkbox-inline"><input type="checkbox" name="inform4" value="1" <?php if($list['type4']['inform']): ?>checked<?php endif; ?>> <span style="padding-top: 2px;display: inline-block;">会员</span> </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">状态</div>
                            <div class="col-sm-10">
                                <div class="switch-inline">
                                    <input type="checkbox" id="switch4" <?php if($list['type4']['is_use']): ?>checked<?php endif; ?>>
                                    <label for="switch4" class=""></label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label"></label>
                            <div class="col-md-8">
                                <a class="btn btn-primary add4" href="javascript:;">保存</a>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="editor1-main-tips mt-10">
                    <p class="mb-10">1、登录【微信公众号平台】=>【功能】=>【消息模板】;</p>
                    <p class="mb-10">2、如找不到该功能，则在【微信公众号平台】=>【功能】=>添加功能插件=>消息模板 中添加；</p>
                    <p class="mb-10">3、选择行业为：“IT科技-互联网|电子商务”</p>
                    <p class="mb-10">4、在【模板库】通过“模版标题”进行搜索，在搜索结果处通过“模版编号”找到相应的模版然后点击添加即可。</p>
                    <p class="mb-10">5、在【我的模板】找到对应的“模版ID”，填入商城的“模版ID”处，勾选通知人然后开启保存即可。</p>
                </div>
            </div>
        </div>
    </div>
    <div role="tabpanel" class="tab-pane fade" id="distributionNotice">
        <div class="tNews-container flex flex-pack-center">
            <div class="tNews-view">
                <div class="tNews-title" >微商来商城</div>
                <div class="view-main" >
                    <div class="tNews-notice">
                        <h4 class="tNews-notice-title">分销商通知</h4>
                        <div class="tNews-notice-content fs-12">
                            <p class="line-1-ellipsis pb-4">消息类别：成为分销商通知</p>
                            <p class="line-1-ellipsis pb-4">通知用户：张三</p>
                            <p class="line-1-ellipsis pb-4">通知内容：亲爱的用户，您已成为分销商！</p>
                            <p class="line-1-ellipsis pb-4">通知时间：2019-01-01</p>
                        </div>
                        <div class="tNews-detail">详情 <span class="pull-right" style="padding-top: 2px"><i class="icon icon-right-arrow"></i></span></div>
                    </div>
                </div>
            </div>
            <div class="custom-editor1 fs-12">
                <div class="editor1-main" style="margin-top: 0px;">
                    <div class="editor1-arrow"></div>
                    <div class="editor1-inner">
                        <div class="form-editor1-title">使用场景：成为分销商通知</div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">模版标题</div>
                            <div class="col-sm-10 mt-6">审核提醒</div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">模版编号</div>
                            <div class="col-sm-10 mt-6">OPENTM207684797</div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label"><span class="text-bright">*</span>模版ID</div>
                            <div class="col-sm-10">
                                <input class="form-control input-sm diy-bind" id="template_id5" value="<?php if($list['type5']['template_id']): ?><?php echo $list['type5']['template_id']; endif; ?>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">通知人</div>
                            <div class="col-sm-10" style="margin-top: 3px">
                                <label class="checkbox-inline"><input type="checkbox" name="inform5" value="5" <?php if($list['type5']['inform']): ?>checked<?php endif; ?>> <span style="padding-top: 2px;display: inline-block;">会员</span> </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">状态</div>
                            <div class="col-sm-10">
                                <div class="switch-inline">
                                    <input type="checkbox" id="switch5" <?php if($list['type5']['is_use']): ?>checked<?php endif; ?>>
                                    <label for="switch5" class=""></label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label"></label>
                            <div class="col-md-8">
                                <a class="btn btn-primary add5" href="javascript:;">保存</a>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="editor1-main-tips mt-10">
                    <p class="mb-10">1、登录【微信公众号平台】=>【功能】=>【消息模板】;</p>
                    <p class="mb-10">2、如找不到该功能，则在【微信公众号平台】=>【功能】=>添加功能插件=>消息模板 中添加；</p>
                    <p class="mb-10">3、选择行业为：“IT科技-互联网|电子商务”</p>
                    <p class="mb-10">4、在【模板库】通过“模版标题”进行搜索，在搜索结果处通过“模版编号”找到相应的模版然后点击添加即可。</p>
                    <p class="mb-10">5、在【我的模板】找到对应的“模版ID”，填入商城的“模版ID”处，勾选通知人然后开启保存即可。</p>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- page end -->

        </div>
        <div class="copyrights"><a href="http://q.url.cn/s/EPvXzVm" target="_blank" class="text-primary">在线客服</a> | Copyright©2012-2019 微商来. All Rights Reserved 网站备案号：粤ICP备14084496号</div>
    </div>

</div>
    <script>
        require(['util','kefu'],function(util,kefu){
          // ie浏览器判断
            function isIE() {
                if (!!window.ActiveXObject || "ActiveXObject" in window){
                    location.href=__URL(PLATFORMMAIN+'/login/versionLow');
                }else{
                    
                }
            }
            isIE();

            $(".newsTips").hover(function(){
                $(this).addClass("open");
            },function(){
                $(this).removeClass("open");
            });


            // 修改密码
            $('.updatePass').on('click',function(){
                    var html = '<form class="form-horizontal padding-15" id="">';
                    html += '<div class="form-group"><label class="col-md-3 control-label"><span class="text-bright">*</span>原密码</label><div class="col-md-8"><input type="password" id="pass" class="form-control"  /></div></div>';
                    html += '<div class="form-group"><label class="col-md-3 control-label"><span class="text-bright">*</span>新密码</label><div class="col-md-8"><input type="password" id="pass_new" class="form-control"  /></div></div>';
                    html +='<div class="form-group"><label class="col-md-3 control-label"><span class="text-bright">*</span>确认密码</label><div class="col-md-8"><input type="password" id="pass_new_real" class="form-control"  /></div></div>';
                    html += '</form>';
                    util.confirm('修改密码',html,function(){
                        var pass = this.$content.find('#pass').val();
                        var pass_new = this.$content.find('#pass_new').val();
                        var pass_new_real = this.$content.find('#pass_new_real').val();
                        if(pass==''){
                            util.message('原密码不能为空','danger');
                            this.$content.find('#pass').focus();
                            return false;
                        }
                        if(pass_new==''){
                            util.message('新密码不能为空','danger');
                            this.$content.find('#pass_new').focus();
                            return false;
                        }
                        if(pass_new_real==''){
                            util.message('确认密码不能为空','danger');
                            this.$content.find('#pass_new_real').focus();
                            return false;
                        }
                        if(pass_new!=pass_new_real){
                            util.message('新密码和确认密码不一致','danger');
                            this.$content.find('#pass_new_real').focus();
                            return false;
                        }
                        $.ajax({
                            type : "post",
                            url : "<?php echo __URL('PLATFORM_MAIN/Auth/resetUserPassword'); ?>",
                            data : {
                                "pass" : pass,
                                "pass_new" : pass_new
                            },
                            success : function(data) {
                                if (data["code"] > 0) {
                                    util.message(data["message"],'success');
                                }else{
                                    util.message(data["message"],'danger');
                                }
                            }
                        });
                    })
                })
            // 个人信息
            $('.updateUser').on('click',function(){
                var html = '<form class="form-horizontal padding-15" id="">';
                if("<?php echo $user_info['is_system']; ?>" == "1"){
                    html += '<div class="form-group"><label class="col-md-3 control-label">公司名称</label><div class="col-md-8"><input type="text" id="user_name" class="form-control" value="<?php echo $web_info['title']; ?>" /></div></div>';
                }else{
                    html += '<div class="form-group"><label class="col-md-3 control-label">公司名称</label><div class="col-md-8"><?php echo $web_info['title']; ?></div></div>';
                }
                html += '</form>';
                util.confirm('账号信息',html,function(){
                        var user_name = this.$content.find('#user_name').val();
                        if(user_name==''){
                            util.message('公司名称不能为空','danger');
                            this.$content.find('#user_name').focus();
                            return false;
                        }
                        $.ajax({
                            type : "post",
                            url : "<?php echo __URL('PLATFORM_MAIN/Auth/modifyUserName'); ?>",
                            data : {
                                "user_name" : user_name
                            },
                            success : function(data) {
                                if (data["code"] > 0) {
                                    $('#updateUser').html(user_name);
                                    util.message(data["message"],'success');
                                }else{
                                    util.message(data["message"],'danger');
                                }
                            }
                        });
                })
            })
            $('.delcache').click(function (e) {
                $.ajax({
                    url : __URL(PLATFORMMAIN+"/System/deleteCache"),
                    type : "post",
                    data : {},
                    success : function(data) {
                        if (data) {
                            util.message('缓存更新成功', 'success',location.reload());
                        } else {
                            util.message('缓存更新失败', 'danger');
                        }
                    }
                });
            })
        })
        function loading(){
            $.ajax({
                type: "post",
                url: "<?php echo __URL('PLATFORM_MAIN/index/tipCount'); ?>",
                async: true,
                success: function (data) {
                    var total_tips=data['total_tips']>100?"99+":data['total_tips'];
                    $(".tip0").html(total_tips);
                    if(data['total_tips']>0){
                        $(".no_count").addClass('hide');
                    }else{
                        $(".no_count").removeClass('hide');
                    }
                    if(data['daifahuo']>0){
                        $(".dai_count").removeClass('hide');
                        $(".tip2").html(data['daifahuo']);
                    }
                    if(data['tuikuanzhong']>0){
                        $(".after_count").removeClass('hide');
                        $(".tip3").html(data['tuikuanzhong']);
                    }
                    if(data['unread']>0){
                        $(".mail_count").removeClass('hide');
                        $(".tip4").html(data['unread']);
                    }
                    if(data['uncms']){
                        $(".cms_count").removeClass('hide');
                        $(".tip5").html(data['uncms']);
                    }
                }
            });
        }
        loading();
    </script>
    
<script>
    require(['util'], function (util) {
        $('.add1').on('click',function(){
            var type = 1;
            var inform = $("input:checkbox[name='inform1']:checked").val();
            if($("#switch1").is(":checked")){
                var is_use = 1;
            }else{
                var is_use = 0;
            }
            var template_id = $("#template_id1").val();
            if(template_id==''){
                util.message('模板ID不能为空','danger');
                return false;
            }
            $.ajax({
                type: "post",
                url: __URL(PLATFORMMAIN + "/wchat/addMessageTemplate"),
                async: true,
                data: {
                    'type':type,
                    'inform':inform,
                    'is_use':is_use,
                    'template_id':template_id
                },
                success: function (data) {
                    if (data['code']>0) {
                        util.message('添加成功','success');
                    }else{
                        util.message('添加失败','danger');
                    }
                }
            })
        });
        $('.add2').on('click',function(){
            var type = 2;
            var inform = $("input:checkbox[name='inform2']:checked").val();
            if($("#switch2").is(":checked")){
                var is_use = 1;
            }else{
                var is_use = 0;
            }
            var template_id = $("#template_id2").val();
            if(template_id==''){
                util.message('模板ID不能为空','danger');
                return false;
            }
            $.ajax({
                type: "post",
                url: __URL(PLATFORMMAIN + "/wchat/addMessageTemplate"),
                async: true,
                data: {
                    'type':type,
                    'inform':inform,
                    'is_use':is_use,
                    'template_id':template_id
                },
                success: function (data) {
                    if (data['code']>0) {
                        util.message('添加成功','success');
                    }else{
                        util.message('添加失败','danger');
                    }
                }
            })
        });
        $('.add3').on('click',function(){
            var type = 3;
            var inform = $("input:checkbox[name='inform3']:checked").val();
            if($("#switch3").is(":checked")){
                var is_use = 1;
            }else{
                var is_use = 0;
            }
            var template_id = $("#template_id3").val();
            if(template_id==''){
                util.message('模板ID不能为空','danger');
                return false;
            }
            $.ajax({
                type: "post",
                url: __URL(PLATFORMMAIN + "/wchat/addMessageTemplate"),
                async: true,
                data: {
                    'type':type,
                    'inform':inform,
                    'is_use':is_use,
                    'template_id':template_id
                },
                success: function (data) {
                    if (data['code']>0) {
                        util.message('添加成功','success');
                    }else{
                        util.message('添加失败','danger');
                    }
                }
            })
        });
        $('.add4').on('click',function(){
            var type = 4;
            var inform = $("input:checkbox[name='inform4']:checked").val();
            if($("#switch4").is(":checked")){
                var is_use = 1;
            }else{
                var is_use = 0;
            }
            var template_id = $("#template_id4").val();
            if(template_id==''){
                util.message('模板ID不能为空','danger');
                return false;
            }
            $.ajax({
                type: "post",
                url: __URL(PLATFORMMAIN + "/wchat/addMessageTemplate"),
                async: true,
                data: {
                    'type':type,
                    'inform':inform,
                    'is_use':is_use,
                    'template_id':template_id
                },
                success: function (data) {
                    if (data['code']>0) {
                        util.message('添加成功','success');
                    }else{
                        util.message('添加失败','danger');
                    }
                }
            })
        });
        $('.add5').on('click',function(){
            var type = 5;
            var inform = $("input:checkbox[name='inform5']:checked").val();
            if($("#switch5").is(":checked")){
                var is_use = 1;
            }else{
                var is_use = 0;
            }
            var template_id = $("#template_id5").val();
            if(template_id==''){
                util.message('模板ID不能为空','danger');
                return false;
            }
            $.ajax({
                type: "post",
                url: __URL(PLATFORMMAIN + "/wchat/addMessageTemplate"),
                async: true,
                data: {
                    'type':type,
                    'inform':inform,
                    'is_use':is_use,
                    'template_id':template_id
                },
                success: function (data) {
                    if (data['code']>0) {
                        util.message('添加成功','success');
                    }else{
                        util.message('添加失败','danger');
                    }
                }
            })
        });
    })
</script>


</body>
</html>

